import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @program: Learning
 * @description:
 * @Company: 终生学习
 * @author: peter.wei
 * @create: 2020-07-23 08:59
 **/
public class TestArrays {

    public static void main(String[] args) {
        String temp = "a,b,c";
        List<String> nextUserList = new ArrayList<String>();
        if (temp.contains(",")) {    //前端如果传入多个人员会以string,string 隔开
            String[] split = temp.split(",");
            nextUserList = Arrays.asList(split);
        } else {
            nextUserList.add(temp);
        }
        System.out.println(nextUserList);
    }
}